package com.epam.xml.xmlimport;

import java.util.List;

import org.apache.log4j.Logger;

import com.epam.xml.bank.Client;

public class StaxLauncher {
	private static Logger logger = Logger.getLogger(StaxLauncher.class);

	public static void main(String[] args) {
		StaxParser parser = new StaxParser();
		parser.parseIt("Clients.xml");
		List<Client> clients = parser.getClients();
		for (Client cl:clients) {
			logger.info(cl.toString());
		}
		
	}

}
